#ifndef FKBUTTONROOM_H
#define FKBUTTONROOM_H

#include "FKRoom.h"

#include "FKLiveButton.h"

class FKLiveButton;
class FKActor;

class FK_OBJECT (FKButtonRoom,FKRoom)
    Q_OBJECT
public:
//    FKButtonRoom(qint32 dummy=0,qint32 objectID=-1);
//    ~FKButtonRoom();
    QString roomType() const{return QString(tr("Button game"));}
    void connectInterface(QObject *roomInterface);
private slots:
    void buttonClicked(FKLiveButton* b);
signals:
private:
    FKWorldReferent* worldClass()const;
    FKRoomInterface* interfaceClass()const;
//    void userGone(FKUser* user);
    virtual void loadCore();
    virtual void initStart();
    virtual bool startCondition();
    void loadUser(FKUser* user);
    void nextTurn();
    bool checkWin();


    QList<FKLiveButton*> _buttons;
//    QList<FKActor*> _actors;
    QMap<FKActor*,FKLiveButton*> _winConditoins;
    bool _blind;
    qint32 _currentActor;

    FK_NO_SERVANT
    FK_NO_CUSTOM_VALUES
};

FK_ROOM_MODULE("3 buttons",FKButtonRoom,ButtonGame,"4.0.0"){
    FKSystemObject::addClass<FKLiveButton>();
}

#endif // FKBUTTONROOM_H
